export const schema = {
    type: "page",
    title: "模块管理",
    body: [
        {
            type: "nav",
            stacked: false,
            links: [
                {
                    label: "编辑",
                    to: "/org/edit/${id}"
                },
                {
                    label: "设置",
                    to: "/org/setting/${id}"
                },
                {
                    label: "自定义认证信息",
                    to: "/org/infosetting/${id}"
                },
                {
                    label: "微信模板信息设置",
                    to: "/org/wechatmessage/${id}"
                },
            ]
        },

        {
            type: "wrapper",
            className: "b-l b-b b-r bg-white no-padder",
            body: {
                panelClassName: 'no-border m-b-none',
                api: "post:/api/org/${id}/wechatmessage",
                initApi: "get:/api/org/${id}/wechatmessage",
                // redirect: "/org/list",
                submitText: "",
                name: "theform",
                type: "form",
                title: "",
                actions: [
                    {
                        type: "submit",
                        primary: true,
                        label: "保存",
                        icon: "fa fa-save pull-left"
                    }
                ],
                collapsable: true,
                fieldSet: [
                    {
                        collapsed: false,
                        className: 'm-t',
                        title: '志愿者消息模板',
                        bodyClassName: 'wrapper',
                        controls: [
                            {
                                type: 'text',
                                name: 'apply_project_vol',
                                label: '活动报名成功或者被拒绝通知'
                            },
                            {
                                type: 'text',
                                name: 'join_team_vol',
                                label: '加入团队成功或者被拒绝通知',
                                disableAutoFill: true
                            },

                            {
                                type: 'text',
                                name: 'sign_on_vol',
                                label: '成功签到获得志愿时长的通知',
                                copyable: true
                            },

                            {
                                type: 'text',
                                name: 'reward_time_vol',
                                label: '团队后台入录时长，获得时长的通知'
                            },
                            {
                                type: 'text',
                                name: 'reward_time_patch_vol',
                                label: '补录时长申请通过或者不通过的通知'
                            },
                            {
                                type: 'text',
                                name: 'station_letter_vol',
                                label: '收到新的站内信通知'
                            },
                            {
                                type: 'text',
                                name: 'project_attention_vol',
                                label: '活动签到前一小时微信消息通知'
                            },
                        ]
                    },
                    {
                        collapsed: true,
                        className: 'm-t',
                        title: '团队管理员的消息模板',
                        bodyClassName: 'wrapper',
                        controls: [
                            {
                                type: 'text',
                                name: 'apply_project_team',
                                label: '收到活动报名的通知'
                            },
                            {
                                type: 'text',
                                name: 'sign_on_team',
                                label: '志愿者签到通知',
                                disableAutoFill: true
                            },

                            {
                                type: 'text',
                                name: 'reward_time_patch_team',
                                label: '志愿者补录时长申请通知',
                                copyable: true
                            },

                            {
                                type: 'text',
                                name: 'project_verify_team',
                                label: '项目通过或者不通过审核的通知'
                            },
                            {
                                type: 'text',
                                name: 'station_letter_team',
                                label: '收到新的站内信'
                            },
                            {
                                type: 'text',
                                name: 'join_team',
                                label: '志愿者申请加入团队通知'
                            },
                        ]
                    },

                ]
            }
        }
    ]
};
